<?php
/**
 * 消费系统
 */
namespace frontend\modules\business\controllers;

use yii;
use yii\web\Controller;
use yii\helpers\Url;

/**
*
 */
class ConsumeController extends Controller
{
    public $business = [];
    
    public $master = null;
    
    public function init()
    {
        parent::init();
        
//         $this->enableCsrfValidation = false;
        
//         $this->business = $this->module->params['business'];
        
//         $masterConfig = $this->module->params['master'];
        
//         $this->master = new yii\db\Connection([
//             'dsn' => "mysql:host={$masterConfig['host']};dbname={$masterConfig['dbname']}",
//             'username' => $masterConfig['username'],
//             'password' => $masterConfig['password'],
//             'charset' => $masterConfig['charset'],
//             'tablePrefix' => $masterConfig['tablePrefix'],
//         ]);
        
    }

    public function actionIndex()
    {
        return $this->render('index');
    }

}
